package com.rybbaby.tss.front.tssMemberTurnHistoryRecord.service.imp;

import com.rybbaby.tss.core.web.service.imp.BaseServiceImp;
import com.rybbaby.tss.front.tssMemberFollowUpRecord.dao.ITssMemberFollowUpRecordDao;
import com.rybbaby.tss.front.tssMemberTurnHistoryRecord.dao.ITssMemberTurnHistoryRecordDao;
import com.rybbaby.tss.front.tssMemberTurnHistoryRecord.entity.TssMemberTurnHistoryRecord;
import com.rybbaby.tss.front.tssMemberTurnHistoryRecord.service.ITssMemberTurnHistoryRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * @author 雷春琼
 * @description 会员课时包数据库操作服务实现
 * @createDate 2017-08-10 上午12:04:35
 */
@Service
@Transactional
public class TssMemberTurnHistoryRecordServiceImp extends BaseServiceImp<TssMemberTurnHistoryRecord> implements ITssMemberTurnHistoryRecordService {

    @Autowired
    private ITssMemberTurnHistoryRecordDao dao;

    @Override
    public List<Map<String, Object>> getDetailListByMemberId(String memberId, Integer type) {
        return dao.getDetailListByMemberId(memberId,type);
    }

    @Override
    public Serializable saveEntity(TssMemberTurnHistoryRecord tssMemberTurnHistoryRecord) {
        return dao.save(tssMemberTurnHistoryRecord);
    }
}
